﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PluggableModulesInterface;
using SMSROUTER.Business;
using Settings;
using PluggableModulesRouter;

namespace StaticThreadManagement
{
    public class MTDeleteReportTheadManage : WorkingBase
    {
        protected override void LoopWorking()
        {
            try
            {
                SmsOutReportStruct.DeleteReport(AppSetting.Status.SENT);
            }
            catch (AggregateException ae)
            {
                foreach (var e in ae.InnerExceptions)
                    HandleException(e, AppSetting.WarningType.mt_error);
            }
            catch (Exception ex)
            {
                HandleException(ex, AppSetting.WarningType.mt_error);
            }
        }
    }
}
